package com.sourcespro.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * lr-tree
 *
 * @author zhanghaowei
 * @date 2018/7/7
 */
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.sourcespro.mybatis.dao")
public class MyBatisTreeApplication {

    /**
     * 注册Spring Util
     */
    @Bean
    public SpringUtil springUtil(){
        return new SpringUtil();
    }

    public static void main(String[] args) {
        SpringApplication.run(MyBatisTreeApplication.class, args);
    }

}


